package com.four.user.service;

import com.four.user.entity.User;
import com.guli.common.utils.R;
import com.guli.common.vo.UserVo;

/**
 * @Author:wsy
 * @Date: 2021/12/16/13:33
 * @Description
 */
public interface UserService {
    /**
     * 验证码登录
     * @param userPhone
     * @param code
     * @return
     */
    R login(String userPhone, String code);

    /**
     * 发送验证码
     * @param userPhone
     * @return
     */
    R sendMsg(String userPhone);

    /**
     * 根据登录人名查询
     * @param loginName
     * @return
     */
    User findByUname(String loginName);

    /**
     * 根据id查询
     * @param userId
     * @return
     */
    UserVo getUserById(Integer userId);
}
